package com.daxia.bumall.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

/**
 * GzActivity
 */
@Entity
@Table(name = "gzactivity") 
public class GzActivity extends BaseModel {
	
	public GzActivity() {
	}
	
	public GzActivity(Long id) {
		this.id = id;
	}
	
	/**
	 * id
	 */
	@Id
	@GeneratedValue
	@Column(name = "id")
    private Long id;
	/**
	 * 手机
	 */
	@Column(name = "mobile")
    private String mobile;
	/**
	 * 姓名
	 */
	@Column(name = "name")
    private String name;
	/**
	 * 报名时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd")	
	@Column(name = "time")
    private Date time;
	
	public Long getId() {
    	return id;
    }
	
    public void setId(Long id) {
    	this.id = id;
    }
	
	public String getMobile() {
    	return mobile;
    }
	
    public void setMobile(String mobile) {
    	this.mobile = mobile;
    }
	
	public String getName() {
    	return name;
    }
	
    public void setName(String name) {
    	this.name = name;
    }
	
	public Date getTime() {
    	return time;
    }
	
    public void setTime(Date time) {
    	this.time = time;
    }
	
}
